import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
import 'package:surfaceim/common/values/colors.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

/// 一级标题样式
class TextStylePrimary extends TextStyle {
  TextStylePrimary(
      {Key? key,
      double? fontSize = 30,
      Color? color = AppColors.primaryText,
      fontFamily: 'Montserrat'})
      : super(fontSize: fontSize!.sp, color: color);
}

/// 二级标题样式
class TextStyleSecondary extends TextStyle {
  TextStyleSecondary(
      {Key? key,
      double? fontSize = 30,
      Color? color = AppColors.primaryText,
      fontFamily: 'Montserrat'})
      : super(fontSize: fontSize!.sp, color: color);
}

/// 普通文本样式
class TextStyleTertiary extends TextStyle {
  TextStyleTertiary(
      {Key? key,
      double? fontSize = 24,
      Color? color = AppColors.primaryText,
      fontFamily: 'Montserrat'})
      : super(fontSize: fontSize!.sp, color: color);
}
